package com.javaclimb.music.dao;

import com.javaclimb.music.domain.ListSong;
import org.springframework.stereotype.Repository;

import java.util.List;

/*
 * 歌单歌曲dao
 * */
@Repository
public interface ListSongMapper {
    public int insert(ListSong listSong);

    public int update(ListSong listSong);

    public int delete(Integer id);

    public ListSong selectByPrimaryKey(Integer id);

    public List<ListSong> allListSong();

    public List<ListSong> listSongOfSongListId(Integer songListId);

    public int deleteBySongIdAndSongListId(Integer songId, Integer songListId);

}
